import request from '@/utils/request'

export function listAllXwgg(data) {
  return request({
    url: '/middleindex/xwgg/listAll',
    method: 'post',
    data
  })
}

export function searchXwgg(data) {
  return request({
    url: '/middleindex/xwgg/search',
    method: 'post',
    data
  })
}

export function getXwgg(data) {
  return request({
    url: `/middleindex/xwgg/get`,
    method: 'post',
    data
  })
}

export function saveXwgg(data) {
  return request({
    url: `/middleindex/xwgg/add`,
    method: 'post',
    data
  })
}

export function updateXwgg(data) {
  return request({
    url: '/middleindex/xwgg/update',
    method: 'post',
    data
  })
}

export function delXwgg(data) {
  return request({
    url: '/middleindex/xwgg/del',
    method: 'post',
    data
  })
}

export function publishXwgg(data) {
  return request({
    url: '/middleindex/xwgg/publish',
    method: 'post',
    data
  })
}

export function uploadImg(data) {
  return request({
    url: '/middleindex/xwgg/upload',
    method: 'post',
    //  ContentType: 'multipart/form-data',
    data
  })
}
